#include "lua.hpp"
#include <iostream>
#include <string>
using namespace std;
int main (void)
{
	lua_State* L = lua_open();
	luaL_openlibs(L);
	int s = luaL_loadstring (L, "print \"hello world\";");
	if ( 0 != s)
	{
		return -1;
	}
	s = lua_pcall(L, 0, LUA_MULTRET, 0);
	if ( 0 != s)
	{
		return -1;
	}
	lua_close(L);
	return 0;
}

